{% extends "base.html" %}

{% block title %}Uploaded Homework List{% endblock %}

{% block content %}
    <h1>Current Uploaded Homework List</h1>
    {% regroup homework_upload by homeworkid as grouped %}
    {% for group in grouped %}
    <li>{{ group.grouper }}</li>
    <ul>
        {% for item in group.list %}
        <li><a href="/media/uploads">{{ item }}</a> {% if is_teacher %} -- {{ item.owner }} Uploaded on: {{ item.uptime }}{% endif %}</li>
        {% endfor %}
    </ul>

    {% endfor %}


{% endblock %}
